package cn.yz.fresh.service.impl;

import cn.yz.fresh.dao.IGradeDAO;
import cn.yz.fresh.pojo.Grade;
import cn.yz.fresh.service.IGradeService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Kim昌完 on 2017/8/30.
 */
@Service
public class GradeServiceImpl  implements IGradeService{
    private IGradeDAO gradeDAOImpl;
    @Override
    public List<Grade> queryAll() {
        return gradeDAOImpl.queryAllGrade();
    }

    public IGradeDAO getGradeDAOImpl() {
        return gradeDAOImpl;
    }

    public void setGradeDAOImpl(IGradeDAO gradeDAOImpl) {
        this.gradeDAOImpl = gradeDAOImpl;
    }
}
